appointment by the court